import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
//引入vuex-persistedstate
// import persistedState from "vuex-persistedstate";
import order from "./order.js"

const store = new Vuex.Store({
	modules:{
		order:order
	},

	// plugins: [persistedState({
	// 	storage:{
	// 		setItem:(key, value) => uni.setStorageSync(key, value),
	// 		getItem:(key) => uni.getStorageSync(key),
	// 		removeItem: (key) => uni.removeStorageSync(key)
	// 	}
	// })]

})

export default store
